home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-06 / iqs.zip / LOADIQS.BAT < prev    next >
DOS Batch File  |  1992-09-14  |  6KB  |  122 lines

  1. @ECHO OFF
  2. REM If you are running DOS 3.2 or below, change the above line to ECHO OFF
  3. REM .
  4. REM .
  5. REM I-Queue Server 3.10
  6. REM (c) Copyright 1992 by Bill Carter & Infinite Technologies
  7. REM .
  8. REM This is the batch file that is used to load the I-Queue! Server print
  9. REM server.  For best results, it is recommended that you load I-Queue!
  10. REM Server into memory on the workstations acting as print servers before
  11. REM they log into the network.
  12. REM .
  13. REM This batch file executes the GETNODE.EXE program (included with I-Queue!
  14. REM Server) to set two environmental variables with the network address
  15. REM of the current workstation.  Conditional statements are then issued
  16. REM to load I-Queue! Server on selected workstations with the appropriate
  17. REM parameters.
  18. REM .
  19. REM An easy way to accomplish this is to place this batch file and the
  20. REM GETNODE.EXE program in your SYS:LOGIN directory.  Rename LOGIN.EXE
  21. REM to LOGON.EXE, and rename this batch file to LOGIN.BAT, so that
  22. REM workstations will execute it first instead of LOGIN.EXE.
  23. REM Include LOGON as the last statement of this batch file to execute
  24. REM the standard Novell LOGIN procedure.
  25. REM .
  26. REM There are two separate versions of the I-Queue! Server program.
  27. REM IQS.EXE uses unencrypted passwords, and can be used under NetWare 2.x
  28. REM or NetWare 3.x when you have issued the statement SET ALLOW UNENCRYPTED
  29. REM PASSWORDS = ON at the file server console.
  30. REM IQSE.EXE uses encrypted passwords, and can be used in either the
  31. REM NetWare 2.x or 3.x environment without restriction.
  32. REM However, IQSE.EXE requires approximately 3-1/2KB of additional
  33. REM memory to provide the encrypted password support, so NetWare 3.x
  34. REM users may wish to enable unencrypted passwords and use IQS.EXE instead.
  35. REM .
  36. REM Command line options for IQS.EXE and IQSE.EXE.
  37. REM .
  38. REM     /U              to un-install.
  39. REM .
  40. REM     /Q<queuename>   primary queue to service.
  41. REM     /Q2<queuename>  2nd queue name.
  42. REM                     (NOTE:  To specify a queue on another file server
  43. REM                     use the syntax /Qserver\queue)
  44. REM .
  45. REM     /x              x is Printer (1-3 for LPT1-LPT3 / 1-4 for COM1-COM4).
  46. REM                       LPT1 is DEFAULT
  47. REM .
  48. REM     /S              Serial version (use COMx instead of LPTx)
  49. REM                     (NOTE:  When using the serial option, you must
  50. REM                     initialize the port's baud rate and parameters
  51. REM                     using the DOS MODE command before loading IQS.)
  52. REM .
  53. REM     /Cx             x is 1-9 for copy to load.
  54. REM                     (NOTE:  You can load up to 9 copies of IQS per
  55. REM                     workstation, simply specify a different copy #
  56. REM                     each time.)
  57. REM .
  58. REM     /P              Use Direct Port I/O to print. (DEFAULT)
  59. REM     /B              Use BIOS to print.
  60. REM                     (NOTE:  The BIOS option is slower, but will be
  61. REM                     compatible with more "unusual" devices.)
  62. REM .
  63. REM     /Dxxx           Delay between jobs for xxx seconds.
  64. REM                     (NOTE:  This option is useful for printers that
  65. REM                     auto-switch between PCL and PostScript.)
  66. REM .
  67. REM     /Rxxxx          Printer Reset String...
  68. REM                     (NOTE:  This is an ASCII string that will be
  69. REM                     sent to the printer after each print job.
  70. REM                     Use {xx} to include non-printable ASCII characters.
  71. REM                     For example, <Escape>-E, which is the reset code
  72. REM                     on HP LaserJets would be denoted /R{27}E)
  73. REM .
  74. REM     /Oxxx           Optimization. X is 128-1024 (256 Default).
  75. REM                     (NOTE:  This # can be increased for better
  76. REM                     performance on workstations being used as
  77. REM                     dedicated print servers.)
  78. REM .
  79. REM     /Fx             Form Servicing Mode, where:
  80. REM                       0 - Ignore forms changes. (DEFAULT)
  81. REM                       1 - Minimize form changes.
  82. REM                       2 - Change forms as needed.
  83. REM                     (NOTE:  The default mode 0 means that I-Queue!
  84. REM                     Server will ignore form specifications in print jobs.
  85. REM                     Modes 1 & 2 will cause IQS to request form
  86. REM                     changes.)
  87. REM .
  88. REM     /L              Local notification of printer errors/form changes (DEFAULT)
  89. REM     /N              No local notification of printer errors/form changes
  90. REM                     (NOTE:  By default or with the /L parameter, IQS will
  91. REM                     send NetWare broadcast messages to the workstation
  92. REM                     it is running on with printer error or form change
  93. REM                     notifications.
  94. REM .
  95. REM     /I              Show status Information.
  96. REM .
  97. REM .
  98. REM Run the GETNODE program, which will set two environmental variables.
  99. REM NET will be set to the current workstation's network address.
  100. REM NODE will be set to the curren workstation's node address.
  101. REM Combined, these will uniquely identify each of your workstations.
  102. GETNODE
  103. REM Sample statements showing IQS parameters:
  104. REM .
  105. REM Bill's PC...Print Queue LASER1 to LPT2 with no local notification of errors.
  106. IF %NET%$==00000001$ IF %NODE%$==000000000046$ IQS /QLASER1 /2 /N
  107. REM Joe's PC...Print Queue LASER7 to COM1 with a reset code of <Escape>E
  108. IF %NET%$==D0DAD0DA$ IF %NODE%$==02608CBADBAD$ MODE COM1:9600,n,8,1
  109. IF %NET%$==D0DAD0DA$ IF %NODE%$==02608CBADBAD$ IQS /QLASER7 /S /1 /R{27}E
  110. REM Print Server Workstation with multiple printers
  111. REM First example is servicing 2 print queues.
  112. REM Second example shows 1 print queue being serviced by 2 printers.
  113. IF %NET%$==00000001$ IF %NODE%$==00000000006F$ IQS /C1 /QEPSON /Q2FS2\EPSON /1
  114. IF %NET%$==00000001$ IF %NODE%$==00000000006F$ IQS /C2 /QLASER2 /2
  115. IF %NET%$==00000001$ IF %NODE%$==00000000006F$ MODE COM1:9600,n,8,1
  116. IF %NET%$==00000001$ IF %NODE%$==00000000006F$ IQS /C3 /QLASER2 /1 /S
  117. REM .
  118. REM To reclaim the environment space used by the NET and NODE variables,
  119. REM we clear them out below.  This is optional.
  120. SET NET=
  121. SET NODE=
  122.